﻿using System;
using System.Collections.Generic;
using System.Text;
using Meqs.Entity;
using System.Collections;

namespace Meqs.Logic.Interface
{
    public interface ITeacherEvalTypeLogic : ICommonLogic<TeacherEvalType, int>
    {
        /// <summary>
        /// 验证名字重复
        /// </summary>
        /// <param name="p"></param>
        /// <param name="historyId"></param>
        /// <param name="causeId"></param>
        /// <param name="typeName"></param>
        /// <returns></returns>
        int ValidateTypeName(string p, int historyId,  string typeName);
        /// <summary>
        /// 插入类型
        /// </summary>
        /// <param name="p"></param>
        /// <param name="historyId"></param>
        /// <param name="typeName"></param>
        /// <returns></returns>
        int InsertType(string p, int historyId, string typeName);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ht"></param>
        /// <returns></returns>
        int Delete(Hashtable ht);
        /// <summary>
        /// 更新名字
        /// </summary>
        /// <param name="ht"></param>
        /// <returns></returns>
        int UpdateTypeName(Hashtable ht);

       /// <summary>
        /// 获取关于教师的评估大类
        /// </summary>
        /// <param name="schoolMark"></param>
        /// <param name="schoolYear"></param>
        /// <param name="term"></param>
        /// <param name="historyId"></param>
        /// <param name="site">学生学分-StuCause，教师系统-Teacher</param>
        /// <returns></returns>
        IList<TeacherEvalType> GetTeachHisType(string schoolMark, int schoolYear, int term, int historyId, string site);
    }
}
